Carbon


SetCustomIconsEnabled

Header: Icons.h Carbon status: Supported

Enables or disables custom icons on a specified volume.

OSErr SetCustomIconsEnabled (
    SInt16 vRefNum, 
    Boolean enableCustomIcons
);
vRefNum

The volume where custom icons are to be enabled or disabled.

enableCustomIcons

If you pass true, custom icons are enabled on the volume specified. Passing false disables custom icons on the volume specified.

function result

A result code.

DISCUSSION

If you use the SetCustomIconsEnabled function to enable or disable custom icons, the setting remains in effect only as long as the specified volume remains mounted during the current session.

AVAILABILITY

Supported in Carbon. Available in CarbonLib 1.0 and later when IconServicesLib 8.5 or later is installed. Exported by CarbonLib 1.0 and later and by IconServicesLib 8.5 and later.


© 2000 Apple Computer, Inc. — (Last Updated 4/18/2000)